Tx
Represents a database transaction that uses a reactive connection for transactional operations.
This class implements the Transaction interface and provides functionality to manage the lifecycle of a transaction, including committing, rolling back, and executing SQL statements. It ensures thread-safety and consistency using a coroutine-based mutex to synchronize operations on the transaction.
Parameters
connection
The reactive database connection used for the transaction.
closeConnectionAfterTx
Indicates whether the connection should be closed after the transaction is finalized.